// StudentInformationset.cpp : implementation file
//

#include "stdafx.h"
#include "SelectLesson.h"
#include "StudentInformationset.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CStudentInformationset

IMPLEMENT_DYNAMIC(CStudentInformationset, CRecordset)

CStudentInformationset::CStudentInformationset(CDatabase* pdb)
	: CRecordset(pdb)
{
	//{{AFX_FIELD_INIT(CStudentInformationset)
	m_StudentNumber = 0;
	m_StudentName = _T("");
	m_Sex = FALSE;
	m_nFields = 4;
	//}}AFX_FIELD_INIT
	m_nDefaultType = dynaset;
}


CString CStudentInformationset::GetDefaultConnect()
{
	return _T("ODBC;DSN=");
}

CString CStudentInformationset::GetDefaultSQL()
{
	return _T("[StudentInformation]");
}

void CStudentInformationset::DoFieldExchange(CFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(CStudentInformationset)
	pFX->SetFieldType(CFieldExchange::outputColumn);
	RFX_Int(pFX, _T("[StudentNumber]"), m_StudentNumber);
	RFX_Text(pFX, _T("[StudentName]"), m_StudentName);
	RFX_Bool(pFX, _T("[Sex]"), m_Sex);
	RFX_Date(pFX, _T("[Birthday]"), m_Birthday);
	//}}AFX_FIELD_MAP
}

/////////////////////////////////////////////////////////////////////////////
// CStudentInformationset diagnostics

#ifdef _DEBUG
void CStudentInformationset::AssertValid() const
{
	CRecordset::AssertValid();
}

void CStudentInformationset::Dump(CDumpContext& dc) const
{
	CRecordset::Dump(dc);
}
#endif //_DEBUG
